# 输出该股票所有收盘比开盘上涨3%以上的日期
import pandas as pd

df = pd.read_csv('./files/前复权./files/茅台.csv')


df['other'] = (df['open'] - df['close'].shift(1)) / df['close'].shift(1)
df['others'] = (df['open'] - df['preclose']) / df['preclose']

# c = df['other'] < -0.02
# print(df[c]['date'])

d = df['others'] < -0.02
print(df[d])


